import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '商品title',
    align: "center",
    dataIndex: 'title'
  },
  {
    title: 'sku',
    align: "center",
    dataIndex: 'sku'
  },
  {
    title: '品牌',
    align: "center",
    dataIndex: 'brand'
  },
  {
    title: '最低价',
    align: "center",
    dataIndex: 'standardPrice'
  },
  {
    title: '运费',
    align: "center",
    dataIndex: 'yunfei'
  },
  {
    title: '最高价',
    align: "center",
    dataIndex: 'highPrice'
  },
  {
    title: '库存',
    align: "center",
    dataIndex: 'quantity'
  },
  {
    title: '上架时间',
    align: "center",
    dataIndex: 'startDate'
  },
  {
    title: '货币单位',
    align: "center",
    dataIndex: 'currency'
  },
  {
    title: '卖家完整地址',
    align: "center",
    dataIndex: 'sellerAddress'
  },
  {
    title: '采集任务id',
    align: "center",
    dataIndex: 'taskId'
  },
];

// 高级查询数据
export const superQuerySchema = {
  title: {title: '商品title',order: 0,view: 'text', type: 'string',},
  sku: {title: 'sku',order: 1,view: 'text', type: 'string',},
  brand: {title: '品牌',order: 2,view: 'text', type: 'string',},
  standardPrice: {title: '最低价',order: 3,view: 'text', type: 'string',},
  yunfei: {title: '运费',order: 4,view: 'text', type: 'string',},
  highPrice: {title: '最高价',order: 5,view: 'text', type: 'string',},
  quantity: {title: '库存',order: 6,view: 'text', type: 'string',},
  startDate: {title: '上架时间',order: 7,view: 'text', type: 'string',},
  currency: {title: '货币单位',order: 8,view: 'text', type: 'string',},
  sellerAddress: {title: '卖家完整地址',order: 9,view: 'text', type: 'string',},
  taskId: {title: '采集任务id',order: 10,view: 'text', type: 'string',},
};
